Add log2 support and make log10 obsolete for consistency.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Jun 2013 14:15:42 +0000 (07:15 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Jun 2013 14:15:42 +0000 (07:15 -0700)
commit2e0770a4962307a4fabd4b5178867d5fd4e6ce2f
treebc404180655b7a3e26405c2c909a2809053d8f75
parent992497e694eeab74e670f655b4abf79817b31146
Add log2 support and make log10 obsolete for consistency.

* configure.ac (log2): Check for this function.
* doc/lispref/numbers.texi (Math Functions): Remove obsolete function log10.
* lisp/subr.el (log10): Move here from C code, and declare as obsolete.
All uses of (log10 X) replaced with (log X 10).
* src/floatfns.c (Flog) [HAVE_LOG2]: Use log2 if available and if the
base is 2; this is more accurate.
(Flog10): Move to Lisp (marked obsolete there).
12 files changed:
ChangeLog
configure.ac
doc/lispref/ChangeLog
doc/lispref/numbers.texi
etc/NEWS
lisp/ChangeLog
lisp/allout.el
lisp/calc/calc.el
lisp/subr.el
lisp/textmodes/rst.el
src/ChangeLog
src/floatfns.c